#服务器端口
server:
  port: 8800
###################  csinc配置  ###################
csinc:
  swagger-open: false #是否开启swagger (true/false)
  kaptcha-open: false #是否开启登录时验证码 (true/false)
  session-open: false #是否开启session超时验证（受影响的类SessionTimeoutInterceptor） (true/false)
  #file-upload-path: d:/tmp  #文件上传目录(不配置的话为java.io.tmpdir目录)
  muti-datasource-open: false #是否开启多数据源(true/false)
  spring-session-open: false #是否开启spring session,如果是多机环境需要开启(true/false)
  session-invalidate-time: 1800 #session失效时间(只在单机环境下生效，多机环境在SpringSessionConfig类中配置) 单位：秒
  session-validation-interval: 900 #多久检测一次失效的session(只在单机环境下生效) 单位：秒
  max-history-version: 5 #历史版本记录最大值
###################  beetl配置  ###################
beetl:
  delimiter-statement-start: \@   #开始结束标签(yaml不允许@开头)
  delimiter-statement-end: null
  resource-tagroot: common/tags   #自定义标签文件Root目录和后缀
  resource-tagsuffix: tag
###################  spring配置  ###################
spring:
  profiles:
    active: dev
  output:
    ansi:
      enabled: always #彩色日志
  mvc:
    static-path-pattern: /static/**
    view:
      prefix: /WEB-INF/view
  http:
    converters:
      preferred-json-mapper: fastjson
    multipart:
      max-request-size: 100MB #最大请求大小
      max-file-size: 100MB #最大文件大小
  aop:
    proxy-target-class: true #false为启用jdk默认动态代理,true为cglib动态代理
#暂且配个LogBack的日志输出
logging:
  config: classpath:logback-spring.xml
###################  mybatis-plus配置  ###################
mybatis-plus:
  mapper-locations: classpath*:com/csinc/generate/**/**/mapping/*.xml
  typeAliasesPackage: com.csinc.generate.model
  global-config:
    id-type: 0  #0:数据库ID自增   1:用户输入id  2:全局唯一id(IdWorker)  3:全局唯一ID(uuid)
    db-column-underline: false
    refresh-mapper: true
  configuration:
    map-underscore-to-camel-case: true
    cache-enabled: true #配置的缓存的全局开关
    lazyLoadingEnabled: true #延时加载的开关
    multipleResultSetsEnabled: true #开启的话，延时加载一个属性时会加载该对象全部属性，否则按需加载属性

---
spring:
  profiles:
    active: dev
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    url: jdbc:mysql://${dbConnectionEntity.ipProperty}:${dbConnectionEntity.portProperty?c}/${dbConnectionEntity.nameProperty}?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8&useSSL=false
    username: ${dbConnectionEntity.userNameProperty}
    password: ${dbConnectionEntity.passwordProperty}
    driver-class-name: com.mysql.cj.jdbc.Driver

---
spring:
  profiles:
    active: prod
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    url: jdbc:mysql://${dbConnectionEntity.ipProperty}:${dbConnectionEntity.portProperty?c}/${dbConnectionEntity.nameProperty}?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8&useSSL=false
    username: ${dbConnectionEntity.userNameProperty}
    password: ${dbConnectionEntity.passwordProperty}
    driver-class-name: com.mysql.cj.jdbc.Driver


